package com.light.gulimall.auth.feign;

import com.light.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 远程调用第三方模块
 */
@FeignClient(name = "gulimall-third-party", url = "http://localhost:88")
public interface ThridPartyRemoteFeignClient {


    @GetMapping("/api/thirdparty/sms/sendCode")
    R sendMessageCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
